package cn.zhx.domain.strategy.service;

import cn.zhx.domain.strategy.model.valobj.RuleWeightVO;

import java.util.List;
import java.util.Map;

/**
 * @Author: zhx
 * @Date: 2024/07/19
 * @Description: 抽奖规则接口
 **/
public interface IRaffleRule {
    /**
     * 根据规则树id 查询奖品规则
     * @return
     */
    Map<String,Integer> queryAwardRuleLockCount(String[] treeIds);

    /**
     * 根据活动id 查询奖品规则权重信息
     * @param activityId 活动id
     * @return List<RuleWeightVO>
     */
    List<RuleWeightVO> queryAwardRuleWeightByActivityId(Long activityId);

    /**
     * 根据策略id 查询奖品规则权重信息
     * @param strategyId 策略id
     * @return List<RuleWeightVO>
     */
    List<RuleWeightVO> queryAwardRuleWeight(Long strategyId);
}
